/**
 * @file setting_date_time.h
 *
 */
#ifndef SETTING_DATE_TIME_H
#define SETTING_DATE_TIME_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#if USE_LV_WATCH_SETTING_DATETIME != 0

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
typedef struct {
    lv_watch_obj_ext_t lv_watch_obj;
    /*New data for this type */
    lv_obj_t * label_date;
    lv_obj_t * label_time;
    lv_obj_t * roller[3];
    char sel_str[3][6];
    uint8_t leapyear;
} lv_datetime_obj_ext_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/
lv_obj_t  * setting_date_time_create(lv_obj_t * activity_obj);
void setting_date_time_create_btn_action(lv_obj_t * btn, lv_event_t event);

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_SETTING_DATETIME*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*SETTING_DATE_TIME_H*/
